<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        var num = Math.random()*1000;
        num = Math.ceil(num);
        var folderid;
        function folder(number){
            folderid = Math.ceil(number/100);
        }
        folder(num);
        console.log(folderid);

        // var num = Math.random()*1000;
        // var id = Math.ceil((Math.ceil(num)/100));
        // console.log(id);
    </script>
</body>
</html>